<?php
/**
 * Created by PhpStorm.
 * User: geyouwen
 * Date: 17/1/19
 * Time: 下午3:17
 */

return [

    'fetch' => PDO::FETCH_CLASS,

    'default' => 'mysql',

    'connections' => [

        /*
         * ---------------------------
         *  Mysql 配置
         * ---------------------------
         */
        'mysql' => [
            'read' => [
                'host' => '192.168.10.116',
            ],
            'write' => [
                'host' => '192.168.10.116'
            ],
            'driver'    => 'mysql',
            'database'  => 'v_member',
            'username'  => 'root',
            'password'  => 'root',
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => 'vape_',
        ],


        /*
        |---------------
        | Mongodb 数据配置
        |---------------
        */
        'mongodb' => [
            'driver'   => 'mongodb',
            'host'     => env('MONGODB_HOST', 'localhost'), //'localhost',
            'port'     => 27017,
            'database' => 'local',
            'username' => '',
            'password' => '',
            'options'  => [
                'database' => 'feed' // sets the authentication database required by mongo 3
            ]
        ],
    ],

    /*
    |---------------
    | redis配置
    |---------------
    |
    */
    'redis' => [
        'cluster' => false,
        'default' => [
            'host'     => env('REDIS_HOST'),
            'port'     => 6379,
            'database' => 0,
            'password' => 'pass123'
        ],
        'share_1' => [
            'host'     => env('REDIS_HOST'),
            'port'     => 6379,
            'database' => 1,
            'password' => 'pass123'
        ],
        'share_2' => [
            'host'     => env('REDIS_HOST'),
            'port'     => 6379,
            'database' => 2,
            'password' => 'pass123'
        ],
        'share_3' => [
            'host'     => env('REDIS_HOST'),
            'port'     => 6379,
            'database' => 3,
            'password' => 'pass123'
        ],
    ],




];